package com.woniuxy.huayoung.service.impl;

import com.woniuxy.huayoung.entity.*;
import com.woniuxy.huayoung.mapper.DestinationMapper;
import com.woniuxy.huayoung.service.DestinationService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * @Author zhangyong
 * @Date 2021/7/19 0019
 */
@Service
public class DestinationServiceImpl implements DestinationService {
    //注入mapper对象
    @Resource
    private DestinationMapper destinationMapper;

    //模糊搜索目的地
    @Override
    public List<Destination> searchDestination(String destination) {
        return destinationMapper.searchDestination(destination);
    }

    //目的地商品
    @Override
    public List<TravelGoods> findGoodsByTravelGoods(String destination) {
        return destinationMapper.findGoodsByTravelGoods(destination);
    }

    //查询所有热门目的地
    @Override
    public List<Destination> hotDestination() {
        return destinationMapper.hotDestination();
    }

    //查找所有的月份
    @Override
    public List<Quarter> findAllQuarter() {
        return destinationMapper.findAllQuarter();
    }

    //当季推荐
    @Override
    public List<Destination> recommendedPlace(Quarter quarter) {
        return destinationMapper.recommendedPlace(quarter);
    }

    //查询主题分类
    @Override
    public List<FeaturedThemes> findAllFeaturedThemes() {
        return destinationMapper.findAllFeaturedThemes();
    }

    //主题精选
    @Override
    public List<ThemesClassification> findThemesByFeaturedThemesId(FeaturedThemes featuredThemes) {
        return destinationMapper.findThemesByFeaturedThemesId(featuredThemes);
    }



}
